package com.arcbbs.mapper;

import com.arcbbs.entity.ForumComment;
import com.arcbbs.entity.ForumCommentQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ForumCommentMapper {
    Integer selectCount(ForumCommentQuery param);

    List<ForumComment> selectList(ForumCommentQuery param);
@Select("select * from forum_comment where comment_id=#{commentId}")
    ForumComment getbyid(Integer commentId);

    void updategoodcount(int i, String objId);


    void updatebyud(Integer topType, Integer commentId);

    void updateTopbyarticle(String articleId);
    @Select("select * from forum_comment where p_comment_id=#{integer}")
    ForumComment getbypid(Integer integer);

    void insert(ForumComment forumComment);
}
